import http from '@/utils/http'

//分页查询
export function findList(data) {
    return http.post('/api/ingredient/category/findList', data)
}

//删除
export function deleteCategory(data) {
    return http.post(`/api/ingredient/category/delete/${data}`)
}

//新增
export function addCategory(data) {
    return http.post(`/api/ingredient/category/add`, data)
}

//编辑
export function editCategory(data) {
    return http.post(`/api/ingredient/category/edit`, data)
}
